Emacs should no longer hang when using newer versions of GLib
(initially reported against libglib2.0-0 2.32.0-2).
Origin: http://pkgs.fedoraproject.org/gitweb/?p=emacs.git;a=commitdiff;h=
a2302b156dba1cc136e8363605d78a66eb3a92a6
Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9754
Bug-Red-Hat: https://bugzilla.redhat.com/show_bug.cgi?id=711739
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=666691
Applied-Upstream: Fixed in Emacs 24
do {
if (n_gfds > gfds_size)
{
- while (n_gfds > gfds_size)
- gfds_size *= 2;
- xfree (gfds);
- gfds = xmalloc (sizeof (*gfds) * gfds_size);
+ if (gfds_size == 0)
+ xgselect_initialize ();
+ else
+ {
+ while (n_gfds > gfds_size)
+ gfds_size *= 2;
+ xfree (gfds);
+ gfds = xmalloc (sizeof (*gfds) * gfds_size);
+ }
}
n_gfds = g_main_context_query (context,